import { Form, Input } from 'antd';

interface Props{
    form: any;
    setForm: any;
}
const BrandForm = ({ form, setForm}: Props) => {
    return <div>
            <Form
                name="basic"
                autoComplete="off"
                

            >
                <Form.Item
                    label=" 品牌名称"

                    rules={[{ required: true, message: "" }]}
                >
                    <Input
                        value={form.brandName}
                        onChange={(e) => {
                            setForm({ ...form, brandName: e.target.value })

                        }}
                    />
                </Form.Item>
                <Form.Item
                    className='m-l-2.5'
                    label="品牌描述"
                >
                    <Input className='h-25'
                        value={form.brandDesc}
                        onChange={(e) => {
                            setForm({ ...form, brandDesc: e.target.value })
                        }}
                    />
                </Form.Item>

            </Form>
        </div>
  
};

export default BrandForm;